﻿using System;
using System.Diagnostics;


namespace RegisterShellExtensions
{
	class Program
	{
		static void Main(string[] args)
		{
			bool actionPerformed = false;
			foreach (var s in args)
			{
				if (s == "-i")
				{
					ColladaDotNetShell.Register();
					actionPerformed = true;
				}
				else if (s == "-u")
				{
					ColladaDotNetShell.UnRegister();
					actionPerformed = true;
				}
			}
			if(!actionPerformed)
			{
				Console.WriteLine("Use -i key to register shell extension.");
				Console.WriteLine("Use -u key to unregister shell extension.");
			}
		}
	}
}
